package grape.composite.rest.railway.mapper;

import grape.composite.rest.railway.form.RailwayListForm;
import grape.composite.service.railway.po.Railway;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.composite.rest.railway.form.RailwayCreateForm;
import grape.composite.rest.railway.form.RailwayUpdateForm;
import grape.composite.rest.railway.form.RailwayListPageForm;
import grape.composite.rest.railway.vo.RailwayVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 铁路线路表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-10
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface RailwayWebMapper extends WebMapper<RailwayVo, Railway> {

    Railway formToPo(RailwayCreateForm f);
    Railway formToPo(RailwayUpdateForm f);
    Railway formToPo(RailwayListPageForm f);
    Railway formToPo(RailwayListForm f);
}
